package com.cskaoyan.shopping.dto;

import com.cskaoyan.mall.commons.result.AbstractRequest;
import lombok.Data;

@Data
public class SearchProductRequest extends AbstractRequest {

    /**
     * size : 20
     * page : 1
     * sort : 1
     * priceLte :
     * key : 坚果
     * priceGt :
     */
    private Integer size;
    private Integer page;
    private String sort;
    private String priceLte;
    private String key;
    private String priceGt;

    @Override
    public void requestCheck() {
        if (page <= 0) {
            setPage(1);
        }
    }
}
